$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require "test/unit"
require 'testcase'
require 'testcasedoc'
                   
class TestStep < Test::Unit::TestCase
    $step = LWA::TestCaseDoc.new("sample_testcase.xml").get_case(3).step_list[0]

    def test_get_step_id
      assert_equal "1", $step.id
    end

    def test_get_step_command
        assert_equal "open_url", $step.command
    end

    def test_get_step_target
        assert_equal "", $step.target
    end

    def test_get_step_value
        assert_equal "http://g.cn", $step.value
    end

    def test_get_step_by
        assert_equal "Watirr", $step.by
    end
end